<div id="managePatients">
	<% unless @unassigned.empty? %>
		<%= form_tag update_all_provider_patients_path(@provider), {method: 'put'} do %>
		<h2>Unassigned Patients</h2>
		<span id="unassigned">
		
			<div>
				<%= render partial: 'unassigned', param_name: 'unassigned_page' %>
			</div>
		
			<%= paginate @unassigned %>	
			<%= submit_tag "Assign to #{@provider.full_name}", style: "float:right" %>
		</span>
		<% end %>
	<% end %>
	<% unless @records.empty?%>
		<%= form_tag update_all_provider_patients_path(@provider), {method: 'put'} do %>
		<span id="providerPatients">
			<h2><%= @provider.full_name%>'s patients</h2>
			<div>
				<%= render partial: 'provider_patients' %>
			</div>
			<%= paginate @records, param_name: 'provider_page' %>
			 <%= submit_tag "Update", style: "float:right" %>
		</span>
		<% end %>
	<% end %>
</div>
